package studentsAndDocentWithTutorship;

import java.util.*;
import util.MyDate;

/**
 * @author Damian
 * Status: Finish
 */
public class Grant { //Beca
	
	/* ******************************** Variables ******************************** */
	private MyDate  startDate;
	private MyDate finalDate;
	private int  amount;
	private List<Student> students = new LinkedList <Student>();
	
	/* ******************************* Constructor ******************************* */
	public Grant  (MyDate inicio, MyDate fin, int monto){
		this.startDate= inicio; 
		this.finalDate = fin; 
		this.amount = monto;
	}
	
	/* ********************************* Metodos ********************************* */
	public void grantEnd (Student becado){
		this.getStudents().remove(becado);
	}
	
	/* ******************************* Gets and Sets ***************************** */
	public MyDate getStartDate() {
		return startDate;
	}
	
	public void setStartDate(MyDate startDate) {
		this.startDate = startDate;
	}
	
	public MyDate getFinalDate() {
		return finalDate;
	}
	
	public void setFinalDate(MyDate finalDate) {
		this.finalDate = finalDate;
	}
	
	public int getAmount() {
		return amount;
	}
	
	public void setAmount(int amount) {
		this.amount = amount;
	}
	
	public void setStudents(List<Student> students) {
		this.students = students;
	}
	
	public List<Student> getStudents() {
		return students;
	}

}
